package com.machine.filling.db.modle;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Unique;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2018/3/29 0029.
 * 订单表
 */
@Entity(nameInDb = "tempOrder")
public class TempOrderModle implements Serializable {

    private static final long serialVersionUID = 5521275777862382232L;
    /**
     * 串口号
     */
    @Property
    private String portNum;

//    @Unique
//    @Property
//    private String gunId;

    @Id(autoincrement = true)
    private Long id;
    /**
     * 油卡类型  1用户的加油卡 2员工卡
     */
    @Property
    private String oilCardType;
    /**
     * 油卡编号
     */
    @Property
    private String oilCardNum;
    /**
     * 订单编号
     */
    @Property
    private String OrderNum;
    /**
     * 油品名称
     */
    @Property
    private String oilTypeName;
    /**
     * 油品单价
     */
    @Property
    private String oilTypeUnitPrice;
    /**
     * 油品促销单价
     */
    @Property
    private String oilTypeCuUnitPrice;
    /**
     * 优惠总金额
     */
    @Property
    private String discountMoney;
    /**
     * 实付总金额
     */
    @Property
    private String payTotalMoney;
    /**
     * 用户名称
     */
    @Property
    private String customName;
    /**
     * 应收金额 = 实付金额 + 优惠金额
     */
    @Property
    private String fuelMoney;
    /**
     * 加油体积
     */
    @Property
    private String fuelVolume;
    /**
     * 订单状态  1未支付  2已支付未写卡  3已支付
     */
    @Property
    private String payState;
    /**
     * 支付方式  1支付宝 2微信 3现金 4油卡
     */
    @Property
    private String payMode;
    /**
     * 是否预约  1预约 0未预约
     */
    @Property
    private String orderType;
    /**
     * 加油时间 时间戳
     */
    @Property
    private long fuelingTime;
    /**
     * 是否上传  0 未上传 1已上传  (是否调用创建订单接口)
     */
    @Property
    private String uploadState;
    /**
     * 订单异常原因
     */
    @Property
    private String reason;
    /**
     * 是否是异常订单
     */
    @Property
    private boolean isError;

    /**
     * 加油凭证号
     */
    @Property
    private String pingzhengCode;


    @Generated(hash = 674595951)
    public TempOrderModle(String portNum, Long id, String oilCardType,
            String oilCardNum, String OrderNum, String oilTypeName,
            String oilTypeUnitPrice, String oilTypeCuUnitPrice,
            String discountMoney, String payTotalMoney, String customName,
            String fuelMoney, String fuelVolume, String payState, String payMode,
            String orderType, long fuelingTime, String uploadState, String reason,
            boolean isError, String pingzhengCode) {
        this.portNum = portNum;
        this.id = id;
        this.oilCardType = oilCardType;
        this.oilCardNum = oilCardNum;
        this.OrderNum = OrderNum;
        this.oilTypeName = oilTypeName;
        this.oilTypeUnitPrice = oilTypeUnitPrice;
        this.oilTypeCuUnitPrice = oilTypeCuUnitPrice;
        this.discountMoney = discountMoney;
        this.payTotalMoney = payTotalMoney;
        this.customName = customName;
        this.fuelMoney = fuelMoney;
        this.fuelVolume = fuelVolume;
        this.payState = payState;
        this.payMode = payMode;
        this.orderType = orderType;
        this.fuelingTime = fuelingTime;
        this.uploadState = uploadState;
        this.reason = reason;
        this.isError = isError;
        this.pingzhengCode = pingzhengCode;
    }

    @Generated(hash = 321503855)
    public TempOrderModle() {
    }

    public String getPortNum() {
        return this.portNum;
    }

    public void setPortNum(String portNum) {
        this.portNum = portNum;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOilCardType() {
        return this.oilCardType;
    }

    public void setOilCardType(String oilCardType) {
        this.oilCardType = oilCardType;
    }

    public String getOilCardNum() {
        return this.oilCardNum;
    }

    public void setOilCardNum(String oilCardNum) {
        this.oilCardNum = oilCardNum;
    }

    public String getOrderNum() {
        return this.OrderNum;
    }

    public void setOrderNum(String OrderNum) {
        this.OrderNum = OrderNum;
    }

    public String getOilTypeName() {
        return this.oilTypeName;
    }

    public void setOilTypeName(String oilTypeName) {
        this.oilTypeName = oilTypeName;
    }

    public String getOilTypeUnitPrice() {
        return this.oilTypeUnitPrice;
    }

    public void setOilTypeUnitPrice(String oilTypeUnitPrice) {
        this.oilTypeUnitPrice = oilTypeUnitPrice;
    }

    public String getOilTypeCuUnitPrice() {
        return this.oilTypeCuUnitPrice;
    }

    public void setOilTypeCuUnitPrice(String oilTypeCuUnitPrice) {
        this.oilTypeCuUnitPrice = oilTypeCuUnitPrice;
    }

    public String getDiscountMoney() {
        return this.discountMoney;
    }

    public void setDiscountMoney(String discountMoney) {
        this.discountMoney = discountMoney;
    }

    public String getPayTotalMoney() {
        return this.payTotalMoney;
    }

    public void setPayTotalMoney(String payTotalMoney) {
        this.payTotalMoney = payTotalMoney;
    }

    public String getCustomName() {
        return this.customName;
    }

    public void setCustomName(String customName) {
        this.customName = customName;
    }

    public String getFuelMoney() {
        return this.fuelMoney;
    }

    public void setFuelMoney(String fuelMoney) {
        this.fuelMoney = fuelMoney;
    }

    public String getFuelVolume() {
        return this.fuelVolume;
    }

    public void setFuelVolume(String fuelVolume) {
        this.fuelVolume = fuelVolume;
    }

    public String getPayState() {
        return this.payState;
    }

    public void setPayState(String payState) {
        this.payState = payState;
    }

    public String getPayMode() {
        return this.payMode == null ? "" : this.payMode;
    }

    public void setPayMode(String payMode) {
        this.payMode = payMode;
    }

    public String getOrderType() {
        return this.orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public long getFuelingTime() {
        return this.fuelingTime;
    }

    public void setFuelingTime(long fuelingTime) {
        this.fuelingTime = fuelingTime;
    }

    public String getUploadState() {
        return this.uploadState;
    }

    public void setUploadState(String uploadState) {
        this.uploadState = uploadState;
    }

    public String getReason() {
        return this.reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public boolean getIsError() {
        return this.isError;
    }

    public void setIsError(boolean isError) {
        this.isError = isError;
    }

    public String getPingzhengCode() {
        return this.pingzhengCode;
    }

    public void setPingzhengCode(String pingzhengCode) {
        this.pingzhengCode = pingzhengCode;
    }




}
